import { getRequest, postRequest, deleteRequest } from '../baseRequest'

// 查询定时任务列表
export const listQrtz = (params) => getRequest('/sys/quartzJob/list', params)

// 查询定时任务详细
export const getQrtz = (id) => getRequest('/sys/quartzJob/' + id)

// 新增定时任务
export const addQrtz = (data) => postRequest('/sys/quartzJob/add', data)
export const pauseQrtz = (data) => getRequest('/sys/quartzJob/pause', data)
export const resumeQrtz = (data) => getRequest('/sys/quartzJob/resume', data)
export const executeQrtz = (data) => getRequest('/sys/quartzJob/execute', data)

// 修改定时任务
export const updateQrtz = (data) => postRequest('/sys/quartzJob/edit', data)

// 删除定时任务
export const delQrtz = (data) => deleteRequest('/sys/quartzJob/delete/', data)
